package com.erp.erp_ui.warehouse.req;

import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName : AddInventoryReq
 * @Description : 新增盘点入参实体
 * @Author : lst
 * @Date: 2020-07-24 16:40
 */
public class AddInventoryReq implements Serializable {
    /**
     * 序列码
     */
    private static final long serialVersionUID = 377019110087864340L;

    /**
     * 主键
     */
    private Integer id;

    /**
     * 盘点单号
     */
    @NotEmpty(message = "盘点单号不能为空")
    private String billNo;

    /**
     * 新单号
     */
    private String newBillNo;

    /**
     * 盘点时间
     */
    private String operationDate;
    /**
     * 经手人
     */
    private String manager;
    /**
     * 经手人编码
     */
    private String managerCode;

    /**
     * 备注
     */
    private String memo;

    /**
     * 状态(1.草稿箱 2.待批箱 3.已批箱 4.完成箱 5.垃圾箱)
     */
    private Integer status;

    /**
     * 盘点明细
     */
    private List<InventoryDetailReq> details;

    /**
     * 附件集合
     */
    private List<AnnexReq> annexList;


    public String getBillNo() {
        return billNo;
    }

    public void setBillNo(String billNo) {
        this.billNo = billNo;
    }

    public String getOperationDate() {
        return operationDate;
    }

    public void setOperationDate(String operationDate) {
        this.operationDate = operationDate;
    }

    public String getManager() {
        return manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }

    public String getManagerCode() {
        return managerCode;
    }

    public void setManagerCode(String managerCode) {
        this.managerCode = managerCode;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNewBillNo() {
        return newBillNo;
    }

    public void setNewBillNo(String newBillNo) {
        this.newBillNo = newBillNo;
    }

    public List<InventoryDetailReq> getDetails() {
        return details;
    }

    public void setDetails(List<InventoryDetailReq> details) {
        this.details = details;
    }

    public List<AnnexReq> getAnnexList() {
        return annexList;
    }

    public void setAnnexList(List<AnnexReq> annexList) {
        this.annexList = annexList;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 重写toString
     */
    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("AddInventoryReq").append('[')
                .append("id=")
                .append(id)
                .append(",billNo=")
                .append(billNo)
                .append(",newBillNo=")
                .append(newBillNo)
                .append(",operationDate=")
                .append(operationDate)
                .append(",manager=")
                .append(manager)
                .append(",managerCode=")
                .append(managerCode)
                .append(",memo=")
                .append(memo)
                .append(",status=")
                .append(status)
                .append(",details=")
                .append(details)
                .append(",annexList=")
                .append(annexList)
                .append(']');
        return sb.toString();
    }
}
